﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OhioState.Controls
{
    public partial class GenerateNoiseTextureForm : Form
    {
        public GenerateNoiseTextureForm()
        {
            InitializeComponent();
            okButton.DialogResult = DialogResult.OK;
            cancelButton.DialogResult = DialogResult.Cancel;

            radioButton2D.CheckedChanged += new EventHandler(radioButtonHandler);
            radioButton3D.CheckedChanged += new EventHandler(radioButtonHandler);
        }

        private void radioButtonHandler(object sender, EventArgs e)
        {
            if (radioButton2D.Checked) zDimNumericUpDown.Enabled = false;
            else zDimNumericUpDown.Enabled = true;
        }

        public String GetTextureName()
        {
            return textBox.Text;
        }

        public void GetTextureDimensions(out int x, out int y, out int z)
        {
            x = (int)xDimNumericUpDown.Value;
            y = (int)yDimNumericUpDown.Value;
            z = (int)zDimNumericUpDown.Value;
        }

        public bool IsTwoDimensional()
        {
            if (radioButton2D.Checked) return true;
            return false;
        }
    }
}
